﻿using iTool.PluginCore.Connector;

namespace iTool.Core.EventTriggered
{
    /// <summary>
    /// 触发事件
    /// </summary>
    public interface IHttpEventTriggered<THttpContext>
        where THttpContext : AbstractHttpContext
    {
        Task BeforeAsync(THttpContext httpContext);
        Task ActionAsync(THttpContext httpContext);
        Task AfterAsync(THttpContext httpContext);
        Task ErrorAsync(THttpContext httpContext, Exception exception);
    }
}
